package com.seckill.controller;

import com.seckill.service.OrderService;
import com.seckill.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:
 *
 * @Author youhongwei
 * @Create 2025/7/24 20:43
 * @Version 1.0
 */
@RestController
@RequestMapping("/order")
public class OrderController {


    @Autowired
    private OrderService orderService;

    @PostMapping("createOrder")
    public R createOrder(Long userId,Long productId){
        return orderService.createOrder(userId,productId);
    }
}
